package com.itheima.cn;

import javax.servlet.*;
import javax.servlet.annotation.WebServlet;
import java.io.IOException;

@WebServlet(urlPatterns = "/demo1",loadOnStartup = 0 )
public class ServletDemo3 implements Servlet {
    public void service(ServletRequest servletRequest, ServletResponse servletResponse) throws ServletException, IOException {
        System.out.println("Servlet Hello World");
    }
    public void init(ServletConfig servletConfig) throws ServletException {
        System.out.println("init");
    }
    public void destroy() {

    }

    public ServletConfig getServletConfig() {
        return null;
    }


    public String getServletInfo() {
        return " ";
    }


}
